package com.teradata.serial.xml;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;

/**
 * @author lyndon
 * @date 2018/7/24T9:40
 */
public class Pojo2Xml {

    public String toXml() throws JsonProcessingException {
        ObjectMapper xmlMapper = new XmlMapper();
        String xml = xmlMapper.writeValueAsString(new Simple());
        return xml;
    }



}
